<script setup>
import { get } from '@/util/axios.js'
import { reactive } from 'vue'
import { useRouter } from 'vue-router'


const tableData = reactive({
    list: [],
    pages: 0
})
const params = {
    pageNo: 1,
    pageSize: 10,
    name: ''
}
getUser()
function getUser () {
    get('/user/list', params ,content => {
        tableData.list = content.records
        tableData.pages = content.pages
    })
}
</script>

<template>
    <div>
        <el-table :data="tableData.list" style="width: 100%">
            <el-table-column prop="id" label="ID"></el-table-column>
            <el-table-column prop="username" label="用户名"></el-table-column>
            <el-table-column prop="name" label="姓名"></el-table-column>
            <el-table-column prop="birthday" label="生日"></el-table-column>
            <el-table-column prop="email" label="邮箱"></el-table-column>
            <el-table-column prop="phone" label="手机号"></el-table-column>
        </el-table>
    </div>
</template>

<style scoped lang="scss">

</style>